//
//  BankbkViewController.m
//  Ten
//
//  Created by anfuer on 2018/8/20.
//  Copyright © 2018年 xg韦. All rights reserved.
//

#import "BankbkViewController.h"

@interface BankbkViewController ()
@property (weak, nonatomic) IBOutlet UITextField *tsf1;
@property (weak, nonatomic) IBOutlet UITextField *tsf2;
@property (weak, nonatomic) IBOutlet UITextField *tsf3;

@end

@implementation BankbkViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    _tsf1.userInteractionEnabled=NO;
    _tsf1.text=WXGStr([FuncPublic GetDefaultInfo:@"nickname"]);
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)btna:(id)sender {
    
    if ([FuncPublic TextFieldisError:_tsf1]||[FuncPublic TextFieldisError:_tsf2]||[FuncPublic TextFieldisError:_tsf3]) {
        [FuncPublic getData:self parameters:@{@"type":@"3",@"bank_name":_tsf2.text,@"account":_tsf3.text,@"username":_tsf1.text} RequestUrl:sadd_bankcard success:^(NSDictionary *acountInfo) {
             [WSProgressHUD showImage:nil status:@"提交成功"];
             [self.navigationController popViewControllerAnimated:YES];
        }];
    }

}



@end
